<template>
    <div class="header">
         <i class="iconfont icon-arrow-left-bold back" @click="handleBack"></i>
        <slot></slot>
    </div>
</template>
<script>
export default {
  methods: {
    handleBack () {
      this.$router.back()
    }
  }
}
</script>
<style lang="scss" scoped>
    .header{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 2.75rem;
        line-height: 2.75rem;
        text-align: center;
        background-color: white;
        font-size: 1.125rem;
    }
    .back{
    position: fixed;
    top: 0;
    left: .5rem;
    font-size: 1.75rem;
  }
</style>
